﻿@model DLM.Web.ViewModel.Admin.ModalityPageView
@using Webdiyer.WebControls.Mvc;
@{
    ViewBag.Title = "活动形式列表";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>信息维护</title>
    <link href="@Url.Content("~/Content/css/admin/global.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/admin/global.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.18.custom.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")"></script>
</head>
<body id="main_body">
    <div class="c1">
        <h1>
            <span>活动形式</span></h1>
        <!--OPERATE S1-->
  @*      <div class="operat_box">
            <span>操作：</span><a href="#"><img src="@Url.Content("~/Content/images/admin/icon_delete.png")" alt="delete" />删除</a>|<a
                href="#"><img src="@Url.Content("~/Content/images/admin/icon_search.png")/" alt="export" />搜索</a>
        </div>*@
        <!--OPERATE E1-->
        <!--OPERATE S2-->
@*        <div class="operat_box">
            <div class="operate_div">
                <table class="form_tb">
                    <tr>
                        <th>
                            <span>*</span>活动ID
                        </th>
                        <td>
                            <input class="text" type="text" />
                        </td>
                        <th>
                            <span>*</span>活动名称
                        </th>
                        <td>
                            <input class="text" type="text" />
                        </td>
                        <th>
                            <span>*</span>发起者
                        </th>
                        <td>
                            <input class="text" type="text" />
                        </td>
                        <th>
                            <span>*</span>活动类型
                        </th>
                        <td>
                            <select>
                                <option>相亲交友活动</option>
                            </select>
                        </td>
                    </tr>
                </table>
            </div>
        </div>*@
        <!--OPERATE E2-->
        <!--TABLE S-->
        <div id="divModalityList" class="table_box">
            @{Html.RenderPartial("_ModalityTable",Model.ModalityList);}
        </div>
        <!--TABLE E-->
        <!--Paging S-->
        <div class="paging clearfix">
            @Html.Pager(Model.ModalityList as PagedList<DLM.Domain.DTO.ModalityDTO>, new PagerOptions { CssClass = "pageAct", PageIndexParameterName = "page", ShowFirstLast = true, PageIndexBoxType = PageIndexBoxType.DropDownList })
        </div>
        <!--Paging E-->
    </div>
    <!--FORM S-->
    <div class="form_box">
        <div class="validate_area" style="display: none;">
            <h6 class="info">
                请确保所有表单都已经填完</h6>
            <h6 class="warning">
                表单验证部分未通过，请填写</h6>
            <h6 class="error">
                表单验证错误，请重新填写</h6>
            <h6 class="accept">
                表单验证未通过，请稍后</h6>
        </div>
        @using (Html.BeginForm("AddModality","Party",FormMethod.Post))
        {
                <div class="form_area">
            <fieldset>
                <legend>活动形式添加</legend>
                <p>
                    <label class="required" for="email">
                        活动类型:</label><br>
                    @{ List<SelectListItem> list = new List<SelectListItem>();
                       foreach (var item in Model.TypeList)
                       {
                           list.Add(new SelectListItem { Text = item.Name, Value = item.PartyType.ToString() });

                       }
                    }
                    @Html.DropDownListFor(m => m.Modality.PID, list, new { @class = "select" })
                    
                </p>
                <p>
                    <label for="firstname">
                        名称</label><br>
                    @Html.TextBoxFor(m => m.Modality.Name, new { @class = "half" })}
                </p>
                <p class="box">
                    <input class="btn" value="提交" type="submit"></p>
            </fieldset>
        </div>
        }
    
    </div>
    <!--FORM E-->
</body>
</html>
